package com.gmail.hongyz.myfuse.dataengine;

import javax.servlet.http.HttpServletRequest;

/**
 * 
 * 请求格式:
 * <pre>
 * jsonRequest: {
 * 	parameters: {
 * 		id: '000001',
 * 		name: 'xxx',
 * 		age: 26,
 * 		isMarried: false,
 * 		favorite: [ 'music', 'reading' ]
 * 	}
 * 	datasets: [{
 * 		datasetId: '0001',
 * 		records: [{
 * 			id: '000001',
 * 			name: 'xxx1'
 * 		}, {
 * 			id: '000002',
 * 			name: 'xxx2'
 * 		}]
 * 	}, {
 * 	}]
 * }
 * </pre>
 * @author hongyz
 *
 */
public interface JsonRequest {

	public String getParameter(String parameter);
	public Dataset getDataset(String datasetId);
	public HttpServletRequest getServletRequest();
}
